<%@page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<style type="text/css">
.top-bar{
    height: 60px;border:1px solid #eee;background-color: #fff;line-height: 60px;
    background: linear-gradient(to bottom, #E1EBF4 , #FFFFFF);
    background:-moz-linear-gradient(top,#E1EBF4,#FFFFFF);/*火狐*/
    background: -webkit-linear-gradient(top, #E1EBF4 , #FFFFFF);/* Safari 5.1 - 6.0 */
    background: -ms-linear-gradient(top, #E1EBF4, #FFFFFF);
    font-family: 'Open Sans', Arial, Helvetica, Sans-serif, Verdana, Tahoma;

/*    background: -moz-linear-gradient(top,#E1EBF4,#FFFFFF);
    background: -webkit-gradient(linear, 0% 0%, 0% 100%,from(#E1EBF4), to(#FFFFFF));
    background-image: -webkit-gradient(linear,left bottom,left top,color-start(0, #E1EBF4),color-stop(1, #FFFFFF));*/
}
.top-logo{
        margin: 13px;
    height: 34px;
}
.top-text{
        height: 20px;
    line-height: 20px;
    font-size: 15px;
    text-align: right;
    color: #54afdb;
    padding: 5px;
    padding-right: 33px;
    float: right;
}
.top-nav{
    float: right;
    height: 30px;
    line-height: 30px;
}
.top-nav li{
    list-style-type:none;
    float: left;
    font-size: 14px;
    width: 45px;
    text-align: center;
    color: #54afdb;
    margin: 0 10px;
    /*overflow: hidden;*/
    cursor: pointer;
    position: relative;
    height: 30px;
}

.top-nav li p{
    width: 45px;
    -webkit-transition:300ms;
}
.top-nav li p span:last-child{
    opacity: 1;
}
.top-nav li p span:first-child{
    opacity: 0;
}
.top-nav li p:hover span:first-child{
    opacity: 1
}
.top-nav li p:hover span:last-child{
    opacity: 0
}
.top-nav li p span{
    display: inline-block;
    width: 45px;
    text-align: center;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    height: 30px;
    position: absolute;
    left: 0;
    top: 0;
    /*background-color: #fff;*/
    -webkit-transition:300ms;
    font-size:14px;
}

.nav-top-msg{
    background-image: url(${ctx}/images/home/msg.png);
}

.nav-top-notice{
    background-image: url(${ctx}/images/home/notice.png);
}

.nav-top-manage{
    background-image: url(${ctx}/images/home/manage.png);
}

.nav-top-us{
    background-image: url(${ctx}/images/home/us.png);
}

.nav-top-out{
    background-image: url(${ctx}/images/home/singout.png);
}

.nav-top-er{
    background-image: url(${ctx}/images/home/er.png);
}
.nav-top-crm{
    background-image: url(${ctx}/images/home/crm.png);
}
.nav-top-close{
    background-image: url(${ctx}/images/home/close.png);
}

.top-nav li.contact-us{
    width: 65px;
    margin: 0;
    margin-left: -2.5px;
    margin-right: -2.5px;
}
.top-nav li.contact-us p span{
    width: 65px;
}
.top-nav li.contact-er{
    width: 65px;
    margin: 0;
    margin-left: -2.5px;
    margin-right: -2.5px;
    overflow: none;
}
.top-nav li.contact-er p span{
    width: 65px;
}
.top-nav li.contact-close{
    width: 65px;
    margin: 0;
    margin-left: -2.5px;
    margin-right: -2.5px;
}
.top-nav li.contact-close p span{
    width: 65px;
}

.top-bar .contact-er{
    cursor: pointer;
    position: relative;
}
.erweima{
    position: absolute;
    width: 257px;
    height: 329px;
    top: 25px;
    right: -10px;
    background-image: url(${ctx}/images/home/erweimabox.png);
    background-repeat: no-repeat;
    display: none;
    z-index: 20;
    text-align: center;
}
.contact-er:hover .erweima{
    display: block;
}
.erweima img{
    width: 80%;
    padding-top: 38px;
}
.top-nav li p.erweima{
    text-align: center;
    font-size: 18px;
    color: #ff6d1d;
    padding-top: 10px;

}
</style>
<!-- <div style="border: 1px solid #c9c9c9; margin-left:10px;margin-right:10px">
    <form method="post" id="logoutForm" name="logoutForm" action="">
        <input TYPE="hidden" id="accountName" NAME="accountName" value="${accountName}">
        <input TYPE="hidden" id="accountPassword" NAME="accountPassword" value="${accountPassword}">
        <table width="100%" cellSpacing="0" cellpadding="10" border="0">
            <tr style="color: #4682B4">
                <td style="vertical-align:middle; background:-moz-linear-gradient(top,#E1EBF4,#FFFFFF); background:-webkit-gradient(linear, 0% 0%, 0% 100%,from(#E1EBF4), to(#FFFFFF)); background-image: -webkit-gradient(linear,left bottom,left top,color-start(0, #E1EBF4),color-stop(1, #FFFFFF)); border-right:0;">
                    <img src="${ctx}/images/home/logo.png" style="height: 47px;margin: 9px 20px;" />
                </td>
                <td align="center" style="width:200px; vertical-align:middle;background:-moz-linear-gradient(top,#E1EBF4,#FFFFFF); background:-webkit-gradient(linear, 0% 0%, 0% 100%,from(#E1EBF4), to(#FFFFFF)); background-image: -webkit-gradient(linear,left bottom,left top,color-start(0, #E1EBF4),color-stop(1, #FFFFFF)); font-size:15px; font-weight:bold; border-left:0;" nowrap>
                    <span style="font-size:13px;">${securityAccount.application.applicationName}</span>
                    <span>${accountName} </span><a onclick="logout('${ctx}/controller/Logout')" style="cursor: hand">退出</a>
                </td>
                <td>
                    <img src="${ctx}/images/common/close.gif" title="关闭所有标签" onclick="closeAllTab()" alt="">&nbsp;
                </td>
            </tr>
        </table>
    </form>
</div> -->
<form method="post" id="logoutForm" name="logoutForm" action="">
<div class="top-bar">
    <img src="${ctx}/images/home/logo.png" class="top-logo">
    <div style="float: right;height: 60px;padding-top: 15px;" >
        
        <ul class="top-nav">
            <li class="contact-close" onclick="closeAllTab()">
                <p>
                    <span>关闭标签</span>
                    <span class="nav-top-close"></span>
                </p>
            </li>
            <li class="contact-er" onclick="">
                <p>
                    <span>二维码</span>
                    <span class="nav-top-er"></span>
                    <div class="erweima">
                        <img src="${ctx}/images/home/erweima.jpg">
                        <p style="width: 257px;line-height: 60px;">扫一扫，即刻关注！</p>
                    </div>
                </p>
            </li>
<!--             <li onclick="">
                <p>
                    <span>消息</span>
                    <span class="nav-top-msg"></span>
                </p>
            </li> -->
            <li onclick="notice()">
                <p>
                    <span>公告</span>
                    <span class="nav-top-notice"></span>
                </p>
            </li>
            <li onclick="manage()">
                <p>
                    <span>账户</span>
                    <span class="nav-top-manage"></span>
                </p>
            </li>
            <li class="contact-us" onclick="contactUs()">
                <p>
                    <span>关于我们</span>
                    <span class="nav-top-us"></span>
                </p>
            </li>
            <li onclick="window.open('${ctx}/home/crm.jsp')">
                <p>
                    <span>CRM</span>
                    <span class="nav-top-crm"></span>
                </p>
            </li>
            <li  onclick="logout('${ctx}/controller/Logout')">
                <p>
                    <span>退出</span>
                    <span class="nav-top-out"></span>
                </p>
            </li>
            
        </ul>
        <div class="top-text">您好，${userName}</div>
    </div>
</div>
</form>
<script type="text/javascript">
    function logout(url) {
        document.getElementById("logoutForm").action = url;
        document.getElementById("logoutForm").submit();
    }
    function notice(){
        parent.showMenuItem(41319, '公告管理', '${ctx}/cms/notice_list.jsp');
    }
    function contactUs(){
        parent.showMenuItem(24592, '关于我们', '${ctx}/about/about.html')
    }
    function manage(){
        parent.showMenuItem(24593, '账户管理',  '${ctx}/security/password_update.jsp')
    }
</script>
